﻿@model EasySolutionForAll.Models.Quiz.QuestionSet

@{
    ViewBag.Title = "title";
}

@if (Model == null)
{
    <b> No Questions found</b>
}
else
{


    <ul class="list-group">
        <li class="list-group-item active">@Model.Question.QuestionText</li>
    </ul>

    <div class="list-group">
        @{
            var counter = 1;
        }
        @foreach (var answer in Model.Answers.OrderBy(c => c.Order))
        {
            <a href="#" onclick="checkAnswer(@Model.QuestionSetId,@answer.AnswerId)"  class="list-group-item">@(counter + ") " + answer.AnswerText)</a>
            counter++;
        }
    </div>
}